﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Foolproof;

namespace Gueei.Gallery.Web.ViewModels
{
	public class BatchUploadViewModel
	{
		public IList<BatchTempImageViewModel> Images { get; set; }

		public bool CreateNewAlbum { get; set; }

		[RequiredIfTrue("CreateNewAlbum", ErrorMessage="New Album Name is required.")]
		public string NewAlbumName { get; set; }

		public BatchUploadViewModel()
		{
			Images = new List<BatchTempImageViewModel>();
			CreateNewAlbum = true;
		}
	}

	public class BatchTempImageViewModel
	{
		[HiddenInput(DisplayValue=false)]
		public Guid Id { get; set; }

		public string Name { get; set; }
		public string Tags { get; set; }
		public string Description { get; set; }
	}
}